* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-container {
    background-position: 0 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-image: url(https://s1.hdslb.com/bfs/seed/jinkela/short/mini-login-v2/img/22_open.4ea5f239.png),
        url(https://s1.hdslb.com/bfs/seed/jinkela/short/mini-login-v2/img/33_open.f7d7f655.png);
    width: 90%; /* 修改为相对宽度，以适应不同屏幕 */
    max-width: 800px; /* 设置最大宽度 */
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.login-content {
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* 允许子元素换行 */
    justify-content: center; /* 水平居中 */
}

.qrcode-section {
    margin-right: 20px;
    text-align: center;
    margin-bottom: 20px; /* 添加底部间距 */
}

.form-section {
    padding-left: 0; /* 移除左侧内边距 */
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.common-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-btn {
    background-color: #66b1ff;
    color: white;
    flex: 1;
}

.register-btn {
    background-color: #f5f5f5;
    color: #333;
    flex: 1;
}

.other-login {
    text-align: center;
    margin: 20px 0;
}

.other-login span {
    color: #666;
    margin-right: 10px;
}

.icon-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.icon-item {
    display: flex;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.agreement {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.agreement a {
    color: #007bff;
    text-decoration: none;
}

/* 媒体查询，当屏幕宽度小于 600px 时的样式 */
@media (max-width: 600px) {
    .login-container {
        width: 100%; /* 宽度占满屏幕 */
        margin: 20px 0; /* 调整上下边距 */
        border: none; /* 移除边框 */
        box-shadow: none; /* 移除阴影 */
    }

    .login-content {
        flex-direction: column; /* 垂直排列子元素 */
    }

    .qrcode-section {
        margin-right: 0; /* 移除右侧间距 */
        border-right: none; /* 移除右侧边框 */
    }

    .form-section {
        padding: 0 20px; /* 添加左右内边距 */
    }
}